﻿@model SDE_FIC.Models.Aluno

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout_Sistema.cshtml"; 
}

<h2>Editar</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Aluno</legend>
        <table style="width:100%;">
            <tr>
                <td style="vertical-align:top;">
              
            @Html.HiddenFor(model => model.IdAluno)
        
        <div class="editor-label">
            <b>Nome</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nome)
            @Html.ValidationMessageFor(model => model.Nome)
        </div>

        <div class="editor-label">
            <b>Telefone</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telefone)
            @Html.ValidationMessageFor(model => model.Telefone)
        </div>

        <div class="editor-label">
            <b>R.G.</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RG)
            @Html.ValidationMessageFor(model => model.RG)
        </div>

        <div class="editor-label">
            <b>C.P.F.</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CPF)
            @Html.ValidationMessageFor(model => model.CPF)
        </div>

        <div class="editor-label">
            <b>Data de Nascimento</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DataNascimento)
            @Html.ValidationMessageFor(model => model.DataNascimento)
        </div>

        <div class="editor-label">
            <b>Endereço</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Logradouro)
            @Html.ValidationMessageFor(model => model.Logradouro)
        </div>

        <div class="editor-label">
            <b>Número</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Numero)
            @Html.ValidationMessageFor(model => model.Numero)
        </div>
        </td>
         <td style="vertical-align:top;">
        <div class="editor-label">
            <b>Bairro</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Bairro)
            @Html.ValidationMessageFor(model => model.Bairro)
        </div>

        <div class="editor-label">
            <b>Cidade</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Cidade)
            @Html.ValidationMessageFor(model => model.Cidade)
        </div>

        <div class="editor-label">
            <b>Estado</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Estado)
            @Html.ValidationMessageFor(model => model.Estado)
        </div>

        <div class="editor-label">
            <b>CEP</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CEP)
            @Html.ValidationMessageFor(model => model.CEP)
        </div>

        <div class="editor-label">
            <b>Responsável</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Responsavel)
            @Html.ValidationMessageFor(model => model.Responsavel)
        </div>

        <div class="editor-label">
            <b>Tel. Responsável</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TelefoneResponsavel)
            @Html.ValidationMessageFor(model => model.TelefoneResponsavel)
        </div>

        <div class="editor-label">
            <b>Observação</b>
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Observacao)
            @Html.ValidationMessageFor(model => model.Observacao)
        </div>

        <p>
            <input type="submit" class="btn btn-sucsess " value="Salvar" />
        </p>
              </td>
            </tr>
        </table>
    </fieldset>
}

<div>
    @Html.ActionLink("Voltar para Listagem", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
